//
// Created by mcy on 2017/10/14.
//
#include <iostream>
#include "assert.h"
#include "split_string.h"
#include "split_string_test.h"

using namespace std;

void SplitStringTest::testSplitNormal() {
    string testWord = "pls,test,this,Project!";
    string endSplitWord[] = {"pls","test","this","Project!"};

    vector<string> test = split(testWord,",");
    for (int k=0; k<endSplitWord->length(); k++)
    {
       assertEqual(test[k],endSplitWord[k]);
    }
    cout << "testSplitNormal() Ok!" << endl;
}


void SplitStringTest::testSplitBlank() {
    string testWord = "";
    string endSplitWord[] = {};
    vector<string> test = split(testWord,",") ;
    assertEqual(endSplitWord, endSplitWord);
    cout << "testSplitBlank() Ok!" << endl;

}



